package com.qqtech.qquan.community.model;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.qqtech.core.common.util.TimeUtil;

@SuppressWarnings("serial")
public class CommunityAddrVo extends CommunityAddr{
	
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this,
				ToStringStyle.MULTI_LINE_STYLE);
	}
	
	public String getStrNewAt() {
		return TimeUtil.getStringTimeByFormat(getNewAt(), "yyyy-MM-dd HH:mm");
	}

	public String getStrUpdAt() {
		return TimeUtil.getStringTimeByFormat(getUpdAt(), "yyyy-MM-dd HH:mm");
	}
}